Skip to content

fix(server): keep Claude gateway reset times for automatic resume - #11

Merged
Type-Delta merged 1 commit into
devfrom
fix/auto-retry-detection
Nov 24, 2026
Merged

Type-Delta merged 1 commit into
devfrom
fix/auto-retry-detection

Conversation

@Type-Delta

Copy link
Copy Markdown
Owner

Some Claude gateway 429 responses include a provider name and put the cooldown after a quoted upstream error. T3 Code classified those responses as usage limits but dropped the reset time, leaving the failed turn without a scheduled retry.

Read the gateway countdown before or after the quoted error, including on provider-routed responses. A countdown quoted from the upstream error alone leaves the failed turn without a recovery time.

Verification

  • Replayed the reported 429 through the Claude adapter. The regression test failed on the base and passed with the fix.
  • Passed 49 focused adapter, scheduler, and orchestration tests, plus vp check and vp run typecheck.
  • Ran an isolated T3 server with the real Claude CLI and a local gateway fixture. The server completed exactly one automatic continuation, dispatched 2.1 seconds after the reported reset.
  • The changed-files check passed 488 tests, formatting, lint, GraphQL validation, and affected typechecks. Knip reported the same 59 unused exports and five duplicate exports on clean dev.

Implemented with GPT-6.2 Sol through Codex in T3 Code.

Claude gateway 429 responses can put their cooldown after a quoted upstream error. Parse the gateway countdown on either side of that error, including when the gateway names the routing provider.

Implemented with GPT-6.2 Sol through Codex in T3 Code.
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 24, 2026
@Type-Delta
Type-Delta merged commit 504f59a into dev Nov 24, 2026
12 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant